package com.controller;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import com.model.dao.OrderDAO;
import com.model.dao.OrderTable;

@SessionScoped
@ManagedBean(name = "orderStatusController")
public class OrderStatusController {

	public String retrieveOrderStatus(String oid) throws NumberFormatException, Exception {
		OrderDAO dao = new OrderDAO();
		OrderTable table=dao.findById(Integer.parseInt(oid));
		return table.getOrderStatus();
	}
}
